package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.example.mybatisplus.common.RealtyDataPermission;
import com.example.mybatisplus.entity.FmCustomer;

import java.util.List;

@RealtyDataPermission(tableName = "fm_customer", field = "id")
// @RealtyDataPermission(tableName = "fm_strata_fee_detail", type = RealtyConstants.MAP_KEY_STALLS, field = "stall_id")
// @RealtyDataPermission(tableName = "fm_electricity_meter", type = RealtyConstants.MAP_KEY_STALLS, field = "id" ,
//         association = true,associationSql = "(select meter_id from fm_electricity_meter_stall where stall_id in ({value}))")
public interface FmCustomerMapper extends BaseMapper<FmCustomer> {

    default List<FmCustomer> customerListAll1() {
        return new LambdaQueryChainWrapper<>(this).list();
    }

    List<FmCustomer> customerListAll2();

    List<FmCustomer> customerListAll3();

}